﻿using System;


namespace _5.SwitchDigitToName
{
    class SwitchDigitToName
    {
        static void Main(string[] args)
        {
            //Write program that asks for a digit and depending on the input shows the name of that digit (in English) using a switch statement.
            int digit = 0;
            Console.WriteLine("Input digit:");
            bool isdigit = int.TryParse(Console.ReadLine(), out digit);
            
            if (digit >= 0 && digit <= 9)
            {
                switch (digit)
                {
                    case 1: Console.WriteLine(digit+"==ONE"); break;
                    case 2: Console.WriteLine(digit + "==TWO"); break;
                    case 3: Console.WriteLine(digit + "==THREE"); break;
                    case 4: Console.WriteLine(digit + "==FOUR"); break;
                    case 5: Console.WriteLine(digit + "==FIVE"); break;
                    case 6: Console.WriteLine(digit + "==SIX"); break;
                    case 7: Console.WriteLine(digit + "==SEVEN"); break;
                    case 8: Console.WriteLine(digit + "==EIGHT"); break;
                    case 9: Console.WriteLine(digit + "==NINE"); break;
                    default: Console.WriteLine(digit + "==ZERO"); break;
                }
            }
            else
            {
                Console.WriteLine("Wrong input! Must be : digit >= 0 && digit <= 9");
            }
        }
    }
}
